export interface Result<T = any> {
  status?: number;
  code?: number;
  message: string;
  statusText?: string;
  data?: T;
}

export interface Property {
  type: string;
  description: string;
}

export interface FunctionDefinition {
  name: string;
  description: string;
  parameters: {
    type: 'object';
    properties: Record<string, Property>;
    required: string[];
  };
}

export interface ApiItem {
  http_url: string;
  http_method: string;
  // name: string;
  type: 'function';
  function: FunctionDefinition;
}
export interface BusinessItem {
  name: string;
  type: string;
  description: string;
  required: string;
}

export interface CreateApiCollectionReq {
  functionSchema: ApiItem;
  datasetId: string;
}

export enum ApiDatasetEvent {
  REFRESHCOLLECTION,
  REFRESHDATASET,
}

export type FcsRewareHousingReq = {
  file_set: Record<string, string>[]; // 文件集
};
